package com.camel.base;

import cn.dev33.satoken.SaManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author camel
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
@ComponentScans(value = {@ComponentScan("com.camel.core"),@ComponentScan(value = "com.camel.base.ei")})
@RefreshScope
public class BaseApplication {

    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class, args);
        System.out.println("基础服务启动成功：Sa-Token配置如下：" + SaManager.getConfig());
    }
}
